package com.yuqiao.read.design.factory2;

import java.util.ArrayList;
import java.util.List;

public abstract class Pizza {

    String name;
    String dough;
    String sauce;
    List<String> toppings = new ArrayList();
    void prepare(){
        System.out.println("prepare"+name);
        System.out.println("tossing dough....");
        System.out.println("add sauce...");
        System.out.println("add  toppings...");
        for(String topping : toppings){
            System.out.println(" "+topping);
        }
    }
    void bake(){
        System.out.println("bake 35 minutes on 350");
    }
    void cut(){
        System.out.println("cut three slices");
    }
    void box(){
        System.out.println("please pizza in official pizzaStore box");
    }

    public String getName() {
        return name;
    }
}
